<template>
  <div>
    <el-row>
      <el-col :span="24">
        <el-date-picker
          v-model="year"
          type="year"
          placeholder="选择年">
        </el-date-picker>
      </el-col>
    </el-row>
  </div>
</template>

<script>
  export default {
    name: 'Year',
    data: () => ({
      year: new Date()
    })
  }
</script>

<style lang="less" scoped>
  .el-date-editor.el-input, .el-date-editor.el-input__inner {
    width: 100%;
  }
</style>
